/**
 * 
 */
package edu.washington.tcss360.burningpenguins.tests;

import static org.junit.Assert.*;

import org.junit.Before;
import org.junit.Test;

import edu.washington.tcss360.burningpenguins.data.DataObject;
import edu.washington.tcss360.burningpenguins.data.User;

/**
 * @author Rolando Sierra
 *
 */
public class UserTest 
{

	/** A data object to use in tests */
	private DataObject my_user;
	
	/** Sets up the data object for tests. */
	@Before
	public void setUp()
	{
		my_user = new User();
	}

	/**
	 * Test method for getId.
	 */
	@Test
	public void testGetId() 
	{
		my_user.setId(3);
		assertSame("Incorrect Id", my_user.getId(), 3);
	}

	/**
	 * Test method for getUsername.
	 */
	@Test
	public void testGetUsername() 
	{
		((User) my_user).setUsername("test");
		assertSame("Incorrect Id", ((User) my_user).getUsername(), "test");
	}

	/**
	 * Test method for getEmail.
	 */
	@Test
	public void testGetEmail() 
	{
		((User) my_user).setEmail("test");
		assertSame("Incorrect Id", ((User) my_user).getEmail(), "test");
	}

	/**
	 * Test method for getFirstName.
	 */
	@Test
	public void testGetFirstName() 
	{
		((User) my_user).setFirstName("test");
		assertSame("Incorrect Id", ((User) my_user).getFirstName(), "test");
	}

	/**
	 * Test method for getLastName.
	 */
	@Test
	public void testGetLastName() 
	{
		((User) my_user).setLastName("test");
		assertSame("Incorrect Id", ((User) my_user).getLastName(), "test");
	}

}
